package com.hollycrm.unicom.code;

import java.io.Serializable;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2004</p>
 * <p>Company: </p>
 * @author Tian Kai
 * @version 1.0
 */

public class GeneralCodeCompositeID implements Serializable {

    private String codeID;
    private String codeType;

    public GeneralCodeCompositeID() {
    }

    public GeneralCodeCompositeID(String codeID, String codeType) {
        this.codeID = codeID;
        this.codeType = codeType;
    }

    public boolean equals(Object obj) {
        if (obj instanceof GeneralCodeCompositeID) {
            GeneralCodeCompositeID that = (GeneralCodeCompositeID) obj;
            return codeID != null && codeType != null &&
                codeID.equals(that.codeID) && codeType.equals(that.codeType);
        }
        return false;
    }

    public int hashCode() {
        return (codeID + "+" + codeType).hashCode();
    }

    public String getCodeID() {
        return codeID;
    }
    public void setCodeID(String codeID) {
        this.codeID = codeID;
    }
    public String getCodeType() {
        return codeType;
    }
    public void setCodeType(String codeType) {
        this.codeType = codeType;
    }

}
